package demo05ObserverPattern;

/**
 * @author: WangPeng
 * @createTime: 2022/11/09 20:41
 * @description:
 * @version: v1.0
 */
public class User implements UserInterface{
    private String name;

    public User(String name) {
        this.name = name;
    }

    @Override
    public void getMessage(String message) {
        System.out.println(name+"接受公众号发送的消息:"+message);
    }
}
